package com.rongke.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.service.IService;
import com.rongke.model.OrderGoods;

import java.util.List;

/**
 * @OrderGoodsService
 * @商品订单详情Service
 * @version : Ver 1.0
 */
public interface OrderGoodsService extends IService<OrderGoods>{

    List<OrderGoods> selectByCondition(OrderGoods orderGoods);

    /**
     * 根据订单id获取订单商品信息详情
     * @param orderId
     * @return
     */
    List<OrderGoods> selectOrderGoodsByOrderId(Long orderId);
    /**
     * 获取一个订单返现哆币总额和雅币总额
     */
    JSONObject findCashBackYbAndDuoBi(Long orderId,Long userId);
}
